//
//  SubjectCell.m
//  TravelNotes
//
//  Created by qianfeng on 15-7-7.
//  Copyright (c) 2015年 ZWB. All rights reserved.
//

#import "SubjectCell.h"
#import "UIImageView+WebCache.h"

@implementation SubjectCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)showDataWithModel:(SubjectModel *)model {
    
    [self.imageView sd_setImageWithURL:[NSURL URLWithString:model.image_url] placeholderImage:[UIImage imageNamed:@"EmptyViewBackground"]];
    self.nameLabel.text = model.name;
    self.titleLabel.text = model.title;
}

@end
